Incluir aluno em um pacote de cursos
curl --request POST \
--url https://kong.api.toolzz.com.br/api/plans/{plan_hash} \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"nome": "<string>",
"schools": [
123
],
"status": "<string>",
"expires_at": "<string>"
}
'import requests
url = "https://kong.api.toolzz.com.br/api/plans/{plan_hash}"
payload = {
"email": "<string>",
"nome": "<string>",
"schools": [123],
"status": "<string>",
"expires_at": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
email: '<string>',
nome: '<string>',
schools: [123],
status: '<string>',
expires_at: '<string>'
})
};
fetch('https://kong.api.toolzz.com.br/api/plans/{plan_hash}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://kong.api.toolzz.com.br/api/plans/{plan_hash}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => '<string>',
'nome' => '<string>',
'schools' => [
123
],
'status' => '<string>',
'expires_at' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://kong.api.toolzz.com.br/api/plans/{plan_hash}"
payload := strings.NewReader("{\n \"email\": \"<string>\",\n \"nome\": \"<string>\",\n \"schools\": [\n 123\n ],\n \"status\": \"<string>\",\n \"expires_at\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://kong.api.toolzz.com.br/api/plans/{plan_hash}")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"<string>\",\n \"nome\": \"<string>\",\n \"schools\": [\n 123\n ],\n \"status\": \"<string>\",\n \"expires_at\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://kong.api.toolzz.com.br/api/plans/{plan_hash}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"<string>\",\n \"nome\": \"<string>\",\n \"schools\": [\n 123\n ],\n \"status\": \"<string>\",\n \"expires_at\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyPacote de cursos
Incluir aluno em um pacote de cursos
Este endpoint permite incluir um aluno específico em um pacote de cursos.
POST
/
api
/
plans
/
{plan_hash}
Incluir aluno em um pacote de cursos
curl --request POST \
--url https://kong.api.toolzz.com.br/api/plans/{plan_hash} \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"nome": "<string>",
"schools": [
123
],
"status": "<string>",
"expires_at": "<string>"
}
'import requests
url = "https://kong.api.toolzz.com.br/api/plans/{plan_hash}"
payload = {
"email": "<string>",
"nome": "<string>",
"schools": [123],
"status": "<string>",
"expires_at": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
email: '<string>',
nome: '<string>',
schools: [123],
status: '<string>',
expires_at: '<string>'
})
};
fetch('https://kong.api.toolzz.com.br/api/plans/{plan_hash}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://kong.api.toolzz.com.br/api/plans/{plan_hash}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => '<string>',
'nome' => '<string>',
'schools' => [
123
],
'status' => '<string>',
'expires_at' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://kong.api.toolzz.com.br/api/plans/{plan_hash}"
payload := strings.NewReader("{\n \"email\": \"<string>\",\n \"nome\": \"<string>\",\n \"schools\": [\n 123\n ],\n \"status\": \"<string>\",\n \"expires_at\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://kong.api.toolzz.com.br/api/plans/{plan_hash}")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"<string>\",\n \"nome\": \"<string>\",\n \"schools\": [\n 123\n ],\n \"status\": \"<string>\",\n \"expires_at\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://kong.api.toolzz.com.br/api/plans/{plan_hash}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"<string>\",\n \"nome\": \"<string>\",\n \"schools\": [\n 123\n ],\n \"status\": \"<string>\",\n \"expires_at\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyParâmetros
string
required
Endereço de e-mail do aluno que será incluído no pacote de cursos.
string
required
Identificador do pacote alvo
string
required
Nome do aluno que será incluído no pacote de cursos.
number[]
required
Lista que pode conter um ou mais identificadores de escolas às quais o aluno será matriculado.
string
required
Status da inscrição no pacote. Pode ser:active: O aluno está ativo no pacote.expired: O aluno teve sua inscrição expirada.
string
Data de vencimento do pacote de cursos do aluno.
Antes de utilizar este endpoint, certifique-se de possuir os seguintes parâmetros disponíveis:
- email
obrigatório: Endereço de e-mail do aluno que está sendo matriculado. - nome
obrigatório: Nome do aluno que está sendo matriculado. - schools
obrigatório: Lista de IDs de escolas às quais o aluno está sendo matriculado.

